package com.jboa.dao;

import java.util.List;

import com.jboa.model.Employee;

public interface EmployeeDao {

	public Employee findBySn(String sn);
	
	public List getEmployee(Employee employee);

	public List<Employee> getEmployeeByHql(String hql, Object[] values);
	
	// 新增数据
	public void save(Employee entity);

	// 删除数据
	public void delete(Employee entity);

	// 修改数据
	public void update(Employee entity);

	
	// 通过表中一个字段查询数据
	public List<Employee> findByProperty(String propertyName, Object value);

	// 通过表中username字段查询数据
	public List<Employee> findByUsername(String username);

	// 查询所有数据
	public List<Employee> findAll2();
}
